﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Titan.Caching
{
    public class CacheManager : ICacheManager
    {
        public void Set<T>(string key, T objectToCache)
        {
            EnterpriseCache.Set(key, objectToCache);
        }

        public T Get<T>(string key)
        {
            return EnterpriseCache.Get<T>(key);
        }

        public void Clear()
        {
            EnterpriseCache.Clear();
        }

        public bool Has(string key)
        {
            return EnterpriseCache.Has(key);
        }
    }

}
